package functions 
{	import functions.FunctionNode;	/**	 * @author admin	 */	public class LessThanFunctionNode extends FunctionNode 
	{
		public function LessThanFunctionNode()
		{
			funcname = "lt";	
			functiontype = FUNCTION;
		}
		
		override public function getValue( args : XML, scope : Object ) : XML
		{
			trace("In LessThanFunctionNode.getValue, args are " + args);
			
			var returnXML:XML;
			
			var argone:Number = Evaluator.getLiteral(args.children()[ 0 ]);
			var argtwo:Number = Evaluator.getLiteral(args.children()[ 1 ]);
			if( argone  < argtwo )
			{
				returnXML =  <t/>;
			}
			else
			{
				returnXML = <list/>;
			}
			
			trace("In LessThanFunctionNode, returning " + returnXML.toXMLString());
			return returnXML;
		}	}}